package com.water.wfo.component.api.exception;

/**
 * packageName com.water.wfo.component.api.exception
 *
 * @author
 * @className BusinessException(处以class为网)
 * @date 2024/8/21
 * @description T0D0
 */
public class BusinessException extends Exception{
    private static final long serialVersionUID = 6865387270185766014L;

    private String statusCode;

    public BusinessException(String message){
        super(message);
    }

    public BusinessException(String statusCode,String message){
        super(message);
        this.statusCode=statusCode;
    }

    public BusinessException(String message,Throwable cause){
        super(message,cause);
    }

    public BusinessException(String statusCode,String message, Throwable cause){
        super(message,cause);
        this.setStatusCode(statusCode);
    }
    public String getStatusCode() {
        return statusCode;
    }

    public void setStatusCode(String statusCode) {
        this.statusCode = statusCode;
    }
}
